.class public Lcom/netease/newsreader/view/PullListView;
.super Landroid/widget/ListView;
.source "PullListView.java"

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;


# instance fields
.field private mFooters:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/widget/ListView$FixedViewInfo;",
            ">;"
        }
    .end annotation
.end field

.field private mHeaders:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/widget/ListView$FixedViewInfo;",
            ">;"
        }
    .end annotation
.end field

.field private mLastMotionX:I

.field private mLastMotionY:I

.field private mListAdapter:Landroid/widget/ListAdapter;

.field private mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

.field private mRefreshViewContainer:Landroid/widget/FrameLayout;

.field private mScrollState:I

.field private mTouchSlop:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 49
    invoke-direct {p0, p1}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V

    .line 31
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mHeaders:Ljava/util/ArrayList;

    .line 32
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mFooters:Ljava/util/ArrayList;

    .line 34
    const/4 v0, 0x0

    iput v0, p0, Lcom/netease/newsreader/view/PullListView;->mScrollState:I

    .line 50
    invoke-direct {p0, p1}, Lcom/netease/newsreader/view/PullListView;->init(Landroid/content/Context;)V

    .line 51
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .parameter "context"
    .parameter "attrs"

    .prologue
    .line 44
    invoke-direct {p0, p1, p2}, Landroid/widget/ListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 31
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mHeaders:Ljava/util/ArrayList;

    .line 32
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mFooters:Ljava/util/ArrayList;

    .line 34
    const/4 v0, 0x0

    iput v0, p0, Lcom/netease/newsreader/view/PullListView;->mScrollState:I

    .line 45
    invoke-direct {p0, p1}, Lcom/netease/newsreader/view/PullListView;->init(Landroid/content/Context;)V

    .line 46
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1
    .parameter "context"
    .parameter "attrs"
    .parameter "defStyle"

    .prologue
    .line 39
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 31
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mHeaders:Ljava/util/ArrayList;

    .line 32
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mFooters:Ljava/util/ArrayList;

    .line 34
    const/4 v0, 0x0

    iput v0, p0, Lcom/netease/newsreader/view/PullListView;->mScrollState:I

    .line 40
    invoke-direct {p0, p1}, Lcom/netease/newsreader/view/PullListView;->init(Landroid/content/Context;)V

    .line 41
    return-void
.end method

.method private init(Landroid/content/Context;)V
    .locals 4
    .parameter "context"

    .prologue
    const/4 v3, 0x0

    .line 54
    invoke-virtual {p0, v3}, Lcom/netease/newsreader/view/PullListView;->setHeaderDividersEnabled(Z)V

    .line 56
    new-instance v1, Landroid/widget/FrameLayout;

    invoke-direct {v1, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/netease/newsreader/view/PullListView;->mRefreshViewContainer:Landroid/widget/FrameLayout;

    .line 57
    iget-object v1, p0, Lcom/netease/newsreader/view/PullListView;->mRefreshViewContainer:Landroid/widget/FrameLayout;

    const/4 v2, 0x0

    invoke-virtual {p0, v1, v2, v3}, Lcom/netease/newsreader/view/PullListView;->addHeaderView(Landroid/view/View;Ljava/lang/Object;Z)V

    .line 59
    invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v0

    .line 60
    .local v0, configuration:Landroid/view/ViewConfiguration;
    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v1

    iput v1, p0, Lcom/netease/newsreader/view/PullListView;->mTouchSlop:I

    .line 61
    invoke-virtual {p0, p0}, Lcom/netease/newsreader/view/PullListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 62
    return-void
.end method

.method private removeFixedViewInfo(Landroid/view/View;Ljava/util/ArrayList;)V
    .locals 4
    .parameter "v"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/view/View;",
            "Ljava/util/ArrayList",
            "<",
            "Landroid/widget/ListView$FixedViewInfo;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 152
    .local p2, where:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/widget/ListView$FixedViewInfo;>;"
    invoke-virtual {p2}, Ljava/util/ArrayList;->size()I

    move-result v2

    .line 153
    .local v2, len:I
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    if-lt v0, v2, :cond_0

    .line 160
    :goto_1
    return-void

    .line 154
    :cond_0
    invoke-virtual {p2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView$FixedViewInfo;

    .line 155
    .local v1, info:Landroid/widget/ListView$FixedViewInfo;
    iget-object v3, v1, Landroid/widget/ListView$FixedViewInfo;->view:Landroid/view/View;

    if-ne v3, p1, :cond_1

    .line 156
    invoke-virtual {p2, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    goto :goto_1

    .line 153
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method


# virtual methods
.method public addFooterView(Landroid/view/View;Ljava/lang/Object;Z)V
    .locals 2
    .parameter "v"
    .parameter "data"
    .parameter "isSelectable"

    .prologue
    .line 131
    new-instance v0, Landroid/widget/ListView$FixedViewInfo;

    invoke-direct {v0, p0}, Landroid/widget/ListView$FixedViewInfo;-><init>(Landroid/widget/ListView;)V

    .line 132
    .local v0, info:Landroid/widget/ListView$FixedViewInfo;
    iput-object p1, v0, Landroid/widget/ListView$FixedViewInfo;->view:Landroid/view/View;

    .line 133
    iput-object p2, v0, Landroid/widget/ListView$FixedViewInfo;->data:Ljava/lang/Object;

    .line 134
    iput-boolean p3, v0, Landroid/widget/ListView$FixedViewInfo;->isSelectable:Z

    .line 135
    iget-object v1, p0, Lcom/netease/newsreader/view/PullListView;->mFooters:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 136
    invoke-super {p0, p1, p2, p3}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;Ljava/lang/Object;Z)V

    .line 137
    return-void
.end method

.method public addHeaderView(Landroid/view/View;Ljava/lang/Object;Z)V
    .locals 9
    .parameter "v"
    .parameter "data"
    .parameter "isSelectable"

    .prologue
    .line 77
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 78
    .local v2, headers:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/widget/ListView$FixedViewInfo;>;"
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 79
    .local v1, footers:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/widget/ListView$FixedViewInfo;>;"
    iget-object v6, p0, Lcom/netease/newsreader/view/PullListView;->mHeaders:Ljava/util/ArrayList;

    invoke-virtual {v2, v6}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 80
    iget-object v6, p0, Lcom/netease/newsreader/view/PullListView;->mFooters:Ljava/util/ArrayList;

    invoke-virtual {v1, v6}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 82
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v5

    .line 83
    .local v5, len:I
    const/4 v3, 0x0

    .local v3, i:I
    :goto_0
    if-lt v3, v5, :cond_2

    .line 88
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v5

    .line 89
    const/4 v3, 0x0

    :goto_1
    if-lt v3, v5, :cond_3

    .line 94
    iget-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mListAdapter:Landroid/widget/ListAdapter;

    .line 95
    .local v0, adapter:Landroid/widget/ListAdapter;
    const/4 v6, 0x0

    invoke-virtual {p0, v6}, Lcom/netease/newsreader/view/PullListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 98
    new-instance v4, Landroid/widget/ListView$FixedViewInfo;

    invoke-direct {v4, p0}, Landroid/widget/ListView$FixedViewInfo;-><init>(Landroid/widget/ListView;)V

    .line 99
    .local v4, info:Landroid/widget/ListView$FixedViewInfo;
    iput-object p1, v4, Landroid/widget/ListView$FixedViewInfo;->view:Landroid/view/View;

    .line 100
    iput-object p2, v4, Landroid/widget/ListView$FixedViewInfo;->data:Ljava/lang/Object;

    .line 101
    iput-boolean p3, v4, Landroid/widget/ListView$FixedViewInfo;->isSelectable:Z

    .line 102
    invoke-virtual {v2, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 104
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v5

    .line 105
    const/4 v3, 0x0

    :goto_2
    if-lt v3, v5, :cond_4

    .line 109
    iget-object v6, p0, Lcom/netease/newsreader/view/PullListView;->mHeaders:Ljava/util/ArrayList;

    invoke-virtual {v6}, Ljava/util/ArrayList;->clear()V

    .line 110
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v6

    if-lez v6, :cond_0

    .line 111
    iget-object v6, p0, Lcom/netease/newsreader/view/PullListView;->mHeaders:Ljava/util/ArrayList;

    invoke-virtual {v6, v2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 114
    :cond_0
    invoke-virtual {p0, v0}, Lcom/netease/newsreader/view/PullListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 116
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v5

    .line 117
    const/4 v3, 0x0

    :goto_3
    if-lt v3, v5, :cond_5

    .line 121
    iget-object v6, p0, Lcom/netease/newsreader/view/PullListView;->mFooters:Ljava/util/ArrayList;

    invoke-virtual {v6}, Ljava/util/ArrayList;->clear()V

    .line 122
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v6

    if-lez v6, :cond_1

    .line 123
    iget-object v6, p0, Lcom/netease/newsreader/view/PullListView;->mFooters:Ljava/util/ArrayList;

    invoke-virtual {v6, v1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 127
    :cond_1
    return-void

    .line 84
    .end local v0           #adapter:Landroid/widget/ListAdapter;
    .end local v4           #info:Landroid/widget/ListView$FixedViewInfo;
    :cond_2
    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/widget/ListView$FixedViewInfo;

    .line 85
    .restart local v4       #info:Landroid/widget/ListView$FixedViewInfo;
    iget-object v6, v4, Landroid/widget/ListView$FixedViewInfo;->view:Landroid/view/View;

    invoke-virtual {p0, v6}, Lcom/netease/newsreader/view/PullListView;->removeHeaderView(Landroid/view/View;)Z

    .line 83
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 90
    .end local v4           #info:Landroid/widget/ListView$FixedViewInfo;
    :cond_3
    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/widget/ListView$FixedViewInfo;

    .line 91
    .restart local v4       #info:Landroid/widget/ListView$FixedViewInfo;
    iget-object v6, v4, Landroid/widget/ListView$FixedViewInfo;->view:Landroid/view/View;

    invoke-virtual {p0, v6}, Lcom/netease/newsreader/view/PullListView;->removeFooterView(Landroid/view/View;)Z

    .line 89
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    .line 106
    .restart local v0       #adapter:Landroid/widget/ListAdapter;
    :cond_4
    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    .end local v4           #info:Landroid/widget/ListView$FixedViewInfo;
    check-cast v4, Landroid/widget/ListView$FixedViewInfo;

    .line 107
    .restart local v4       #info:Landroid/widget/ListView$FixedViewInfo;
    iget-object v6, v4, Landroid/widget/ListView$FixedViewInfo;->view:Landroid/view/View;

    iget-object v7, v4, Landroid/widget/ListView$FixedViewInfo;->data:Ljava/lang/Object;

    iget-boolean v8, v4, Landroid/widget/ListView$FixedViewInfo;->isSelectable:Z

    invoke-super {p0, v6, v7, v8}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;Ljava/lang/Object;Z)V

    .line 105
    add-int/lit8 v3, v3, 0x1

    goto :goto_2

    .line 118
    :cond_5
    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    .end local v4           #info:Landroid/widget/ListView$FixedViewInfo;
    check-cast v4, Landroid/widget/ListView$FixedViewInfo;

    .line 119
    .restart local v4       #info:Landroid/widget/ListView$FixedViewInfo;
    iget-object v6, v4, Landroid/widget/ListView$FixedViewInfo;->view:Landroid/view/View;

    iget-object v7, v4, Landroid/widget/ListView$FixedViewInfo;->data:Ljava/lang/Object;

    iget-boolean v8, v4, Landroid/widget/ListView$FixedViewInfo;->isSelectable:Z

    invoke-super {p0, v6, v7, v8}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;Ljava/lang/Object;Z)V

    .line 117
    add-int/lit8 v3, v3, 0x1

    goto :goto_3
.end method

.method public getHeaderViewsCount()I
    .locals 1

    .prologue
    .line 170
    invoke-super {p0}, Landroid/widget/ListView;->getHeaderViewsCount()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    return v0
.end method

.method hasTouchScrolled()Z
    .locals 2

    .prologue
    const/4 v0, 0x1

    .line 243
    iget v1, p0, Lcom/netease/newsreader/view/PullListView;->mScrollState:I

    if-ne v1, v0, :cond_0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public measureRefresh(II)V
    .locals 3
    .parameter "widthMeasureSpec"
    .parameter "heightMeasureSpec"

    .prologue
    .line 65
    iget-object v1, p0, Lcom/netease/newsreader/view/PullListView;->mRefreshViewContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    if-nez v1, :cond_0

    .line 66
    new-instance v0, Landroid/widget/AbsListView$LayoutParams;

    const/4 v1, -0x1

    .line 67
    const/4 v2, -0x2

    .line 66
    invoke-direct {v0, v1, v2}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    .line 68
    .local v0, lp:Landroid/widget/AbsListView$LayoutParams;
    iget-object v1, p0, Lcom/netease/newsreader/view/PullListView;->mRefreshViewContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 70
    .end local v0           #lp:Landroid/widget/AbsListView$LayoutParams;
    :cond_0
    iget-object v1, p0, Lcom/netease/newsreader/view/PullListView;->mRefreshViewContainer:Landroid/widget/FrameLayout;

    invoke-virtual {p0, v1, p1, p2}, Lcom/netease/newsreader/view/PullListView;->measureChild(Landroid/view/View;II)V

    .line 71
    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 4
    .parameter "ev"

    .prologue
    .line 224
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v2

    packed-switch v2, :pswitch_data_0

    .line 239
    :cond_0
    :goto_0
    :pswitch_0
    invoke-super {p0, p1}, Landroid/widget/ListView;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v2

    :goto_1
    return v2

    .line 226
    :pswitch_1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    float-to-int v2, v2

    iput v2, p0, Lcom/netease/newsreader/view/PullListView;->mLastMotionX:I

    .line 227
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    float-to-int v2, v2

    iput v2, p0, Lcom/netease/newsreader/view/PullListView;->mLastMotionY:I

    goto :goto_0

    .line 230
    :pswitch_2
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    float-to-int v2, v2

    iget v3, p0, Lcom/netease/newsreader/view/PullListView;->mLastMotionX:I

    sub-int/2addr v2, v3

    invoke-static {v2}, Ljava/lang/Math;->abs(I)I

    move-result v0

    .line 231
    .local v0, deltaX:I
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    float-to-int v2, v2

    iget v3, p0, Lcom/netease/newsreader/view/PullListView;->mLastMotionY:I

    sub-int/2addr v2, v3

    invoke-static {v2}, Ljava/lang/Math;->abs(I)I

    move-result v1

    .line 232
    .local v1, deltaY:I
    if-le v0, v1, :cond_0

    iget v2, p0, Lcom/netease/newsreader/view/PullListView;->mTouchSlop:I

    if-le v0, v2, :cond_0

    .line 233
    const/4 v2, 0x0

    goto :goto_1

    .line 224
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method public onScroll(Landroid/widget/AbsListView;III)V
    .locals 1
    .parameter "view"
    .parameter "firstVisibleItem"
    .parameter "visibleItemCount"
    .parameter "totalItemCount"

    .prologue
    .line 268
    iget-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    if-eqz v0, :cond_0

    .line 269
    iget-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    invoke-interface {v0, p1, p2, p3, p4}, Landroid/widget/AbsListView$OnScrollListener;->onScroll(Landroid/widget/AbsListView;III)V

    .line 271
    :cond_0
    return-void
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .locals 1
    .parameter "view"
    .parameter "scrollState"

    .prologue
    .line 275
    iput p2, p0, Lcom/netease/newsreader/view/PullListView;->mScrollState:I

    .line 276
    iget-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    if-eqz v0, :cond_0

    .line 277
    iget-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    invoke-interface {v0, p1, p2}, Landroid/widget/AbsListView$OnScrollListener;->onScrollStateChanged(Landroid/widget/AbsListView;I)V

    .line 279
    :cond_0
    return-void
.end method

.method public removeFooterView(Landroid/view/View;)Z
    .locals 1
    .parameter "v"

    .prologue
    .line 141
    iget-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mFooters:Ljava/util/ArrayList;

    invoke-direct {p0, p1, v0}, Lcom/netease/newsreader/view/PullListView;->removeFixedViewInfo(Landroid/view/View;Ljava/util/ArrayList;)V

    .line 142
    invoke-super {p0, p1}, Landroid/widget/ListView;->removeFooterView(Landroid/view/View;)Z

    move-result v0

    return v0
.end method

.method public removeHeaderView(Landroid/view/View;)Z
    .locals 1
    .parameter "v"

    .prologue
    .line 147
    iget-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mHeaders:Ljava/util/ArrayList;

    invoke-direct {p0, p1, v0}, Lcom/netease/newsreader/view/PullListView;->removeFixedViewInfo(Landroid/view/View;Ljava/util/ArrayList;)V

    .line 148
    invoke-super {p0, p1}, Landroid/widget/ListView;->removeHeaderView(Landroid/view/View;)Z

    move-result v0

    return v0
.end method

.method public setAdapter(Landroid/widget/ListAdapter;)V
    .locals 0
    .parameter "adapter"

    .prologue
    .line 164
    iput-object p1, p0, Lcom/netease/newsreader/view/PullListView;->mListAdapter:Landroid/widget/ListAdapter;

    .line 165
    invoke-super {p0, p1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 166
    return-void
.end method

.method public setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V
    .locals 1
    .parameter

    .prologue
    .line 175
    .local p1, listener:Landroid/widget/AdapterView$OnItemClickListener;,"Landroid/widget/AdapterView$OnItemClickListener;"
    if-eqz p1, :cond_0

    .line 176
    move-object v0, p1

    .line 177
    .local v0, l:Landroid/widget/AdapterView$OnItemClickListener;,"Landroid/widget/AdapterView$OnItemClickListener;"
    new-instance p1, Lcom/netease/newsreader/view/PullListView$1;

    .end local p1           #listener:Landroid/widget/AdapterView$OnItemClickListener;,"Landroid/widget/AdapterView$OnItemClickListener;"
    invoke-direct {p1, p0, v0}, Lcom/netease/newsreader/view/PullListView$1;-><init>(Lcom/netease/newsreader/view/PullListView;Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 184
    .end local v0           #l:Landroid/widget/AdapterView$OnItemClickListener;,"Landroid/widget/AdapterView$OnItemClickListener;"
    .restart local p1       #listener:Landroid/widget/AdapterView$OnItemClickListener;,"Landroid/widget/AdapterView$OnItemClickListener;"
    :cond_0
    invoke-super {p0, p1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 185
    return-void
.end method

.method public setOnItemLongClickListener(Landroid/widget/AdapterView$OnItemLongClickListener;)V
    .locals 1
    .parameter

    .prologue
    .line 189
    .local p1, listener:Landroid/widget/AdapterView$OnItemLongClickListener;,"Landroid/widget/AdapterView$OnItemLongClickListener;"
    if-eqz p1, :cond_0

    .line 190
    move-object v0, p1

    .line 191
    .local v0, l:Landroid/widget/AdapterView$OnItemLongClickListener;,"Landroid/widget/AdapterView$OnItemLongClickListener;"
    new-instance p1, Lcom/netease/newsreader/view/PullListView$2;

    .end local p1           #listener:Landroid/widget/AdapterView$OnItemLongClickListener;,"Landroid/widget/AdapterView$OnItemLongClickListener;"
    invoke-direct {p1, p0, v0}, Lcom/netease/newsreader/view/PullListView$2;-><init>(Lcom/netease/newsreader/view/PullListView;Landroid/widget/AdapterView$OnItemLongClickListener;)V

    .line 200
    .end local v0           #l:Landroid/widget/AdapterView$OnItemLongClickListener;,"Landroid/widget/AdapterView$OnItemLongClickListener;"
    .restart local p1       #listener:Landroid/widget/AdapterView$OnItemLongClickListener;,"Landroid/widget/AdapterView$OnItemLongClickListener;"
    :cond_0
    invoke-super {p0, p1}, Landroid/widget/ListView;->setOnItemLongClickListener(Landroid/widget/AdapterView$OnItemLongClickListener;)V

    .line 201
    return-void
.end method

.method public setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V
    .locals 1
    .parameter

    .prologue
    .line 205
    .local p1, listener:Landroid/widget/AdapterView$OnItemSelectedListener;,"Landroid/widget/AdapterView$OnItemSelectedListener;"
    if-eqz p1, :cond_0

    .line 206
    move-object v0, p1

    .line 207
    .local v0, l:Landroid/widget/AdapterView$OnItemSelectedListener;,"Landroid/widget/AdapterView$OnItemSelectedListener;"
    new-instance p1, Lcom/netease/newsreader/view/PullListView$3;

    .end local p1           #listener:Landroid/widget/AdapterView$OnItemSelectedListener;,"Landroid/widget/AdapterView$OnItemSelectedListener;"
    invoke-direct {p1, p0, v0}, Lcom/netease/newsreader/view/PullListView$3;-><init>(Lcom/netease/newsreader/view/PullListView;Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 219
    .end local v0           #l:Landroid/widget/AdapterView$OnItemSelectedListener;,"Landroid/widget/AdapterView$OnItemSelectedListener;"
    .restart local p1       #listener:Landroid/widget/AdapterView$OnItemSelectedListener;,"Landroid/widget/AdapterView$OnItemSelectedListener;"
    :cond_0
    invoke-super {p0, p1}, Landroid/widget/ListView;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 220
    return-void
.end method

.method public setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V
    .locals 0
    .parameter "l"

    .prologue
    .line 258
    if-ne p1, p0, :cond_0

    .line 259
    invoke-super {p0, p1}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 263
    :goto_0
    return-void

    .line 262
    :cond_0
    iput-object p1, p0, Lcom/netease/newsreader/view/PullListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    goto :goto_0
.end method

.method public setRefreshView(Landroid/view/View;)V
    .locals 1
    .parameter "refreshView"

    .prologue
    .line 251
    iget-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mRefreshViewContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->removeAllViews()V

    .line 252
    iget-object v0, p0, Lcom/netease/newsreader/view/PullListView;->mRefreshViewContainer:Landroid/widget/FrameLayout;

    invoke-virtual {v0, p1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 254
    return-void
.end method
